home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIFileChannel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  2.2 KB  |  95 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFileChannel.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFileChannel_h__
  6. #define __gen_nsIFileChannel_h__
  7.  
  8.  
  9. #ifndef __gen_nsIChannel_h__
  10. #include "nsIChannel.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIFile; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIFileChannel */
  21. #define NS_IFILECHANNEL_IID_STR "68a26506-f947-11d3-8cda-0060b0fc14a3"
  22.  
  23. #define NS_IFILECHANNEL_IID \
  24.   {0x68a26506, 0xf947, 0x11d3, \
  25.     { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
  26.  
  27. /**
  28.  * nsIFileChannel
  29.  */
  30. class NS_NO_VTABLE nsIFileChannel : public nsIChannel {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFILECHANNEL_IID)
  34.  
  35.   /* readonly attribute nsIFile file; */
  36.   NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
  37.  
  38. };
  39.  
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIFILECHANNEL \
  42.   NS_IMETHOD GetFile(nsIFile * *aFile); 
  43.  
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIFILECHANNEL(_to) \
  46.   NS_IMETHOD GetFile(nsIFile * *aFile) { return _to GetFile(aFile); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIFILECHANNEL(_to) \
  50.   NS_IMETHOD GetFile(nsIFile * *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } 
  51.  
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54.  
  55. /* Header file */
  56. class nsFileChannel : public nsIFileChannel
  57. {
  58. public:
  59.   NS_DECL_ISUPPORTS
  60.   NS_DECL_NSIFILECHANNEL
  61.  
  62.   nsFileChannel();
  63.  
  64. private:
  65.   ~nsFileChannel();
  66.  
  67. protected:
  68.   /* additional members */
  69. };
  70.  
  71. /* Implementation file */
  72. NS_IMPL_ISUPPORTS1(nsFileChannel, nsIFileChannel)
  73.  
  74. nsFileChannel::nsFileChannel()
  75. {
  76.   /* member initializers and constructor code */
  77. }
  78.  
  79. nsFileChannel::~nsFileChannel()
  80. {
  81.   /* destructor code */
  82. }
  83.  
  84. /* readonly attribute nsIFile file; */
  85. NS_IMETHODIMP nsFileChannel::GetFile(nsIFile * *aFile)
  86. {
  87.     return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89.  
  90. /* End of implementation class template. */
  91. #endif
  92.  
  93.  
  94. #endif /* __gen_nsIFileChannel_h__ */
  95.